package com.noahplat.fourg.controller;

import com.noahplat.fourg.service.FourgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/fourg")
public class FourgController {

    @Autowired
    private FourgService fourgService;

    /**
     * 根据协议类型做设备推送数据做不同处理
     *
     * @param message
     * @return
     */
    @PostMapping("/getDeviceData")
    public void getDeviceData(String message, String imei){
        fourgService.getDeviceData(message, null, imei);
    }
}
